<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 4/24/17
 * Time: 4:40 PM
 */

namespace common\models;

/**
 * Class ApiRoleRoute
 * @package common\models
 *
 * @property ApiRole $apiRole
 * @property ApiRoute $apiRoute
 */
class ApiRoleRoute extends \common\models\base\ApiRoleRoute
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getApiRole()
    {
        return $this->hasOne(ApiRole::className(), ['id' => 'api_role_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getApiRoute()
    {
        return $this->hasOne(ApiRoute::className(), ['id' => 'api_route_id']);
    }
}